package com.atguigu.base;

import org.springframework.ui.Model;

/**
 * @Author:hx
 * @DateTime:2022/9/23 14:57
 * @Description:
 */
public class BaseController {
    private final static String PAGE_SUCCESS = "common/successPage";
    public String successPage(Model model, String successMessage){
        model.addAttribute("messagePage",successMessage);
        return PAGE_SUCCESS;
    }

    public String toIndex(String templates){
        return templates + "/index";
    }
}
